<template>
  <van-overlay :z-index="999999" :show="$store.state.loading" >
    <div class="loading-wrapper" @click.stop>
      <div class="block">
        <div class="coin-icon"/>
        <span>正在努力加载...</span>
      </div>
    </div>
  </van-overlay>
</template>

<script>
export default {
  name: "Loading"
}
</script>

<style lang="scss">
.loading-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  .coin-icon {
    display: block;
    background: url("@/public/coin/coin1.png");
    margin: 15px auto 0;
    height: 60px;
    width: 60px;
    animation: coin 2.3s infinite linear;
    background-size: 100% 100%;
  }
  .block {
    width: 120px;
    height: 120px;
    text-align: center;
    color: white;
    span {
      display: block;
      margin-top: 10px;
      font-size: 14px;
      font-weight: bold;
    }
  }
}
</style>
